<?php

return [
	'update' => function() {
		return Yls::Db()->From('~User')->Where('id = '.Yls::Instance()->At('id'))->Update();
	},
	'read' => function() {
    	return Yls::Db()->From('~User')->Order('id DESC')->Group('nick', 'ASC')->Read();
	},
    'delete' => function() {
        return Yls::Db()->From('~User')->Where('id = '.Yls::Instance()->At('id'))->Delete();
    }
];